package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.EmailConfigurationMapper;
import com.whq.entity.EmailConfiguration;
import com.whq.service.EmailConfigurationService;

@Service(value = "tdEmailConfigurationService")
public class EmailConfigurationServiceImpl implements EmailConfigurationService {

    @Autowired
    private EmailConfigurationMapper<EmailConfiguration>tdEmailConfigurationMapper;
    
    @Override
    public Integer insertSelective(EmailConfiguration tdEmailConfiguration) throws Exception {
           return this.tdEmailConfigurationMapper.insertSelective(tdEmailConfiguration);
        }

    @Override
    public Integer insertBatch(List<EmailConfiguration> tdEmailConfiguration) throws Exception {
           return this.tdEmailConfigurationMapper.insertBatch(tdEmailConfiguration) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdEmailConfigurationMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdEmailConfigurationMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(EmailConfiguration tdEmailConfiguration) {
           return this.tdEmailConfigurationMapper.updateByPrimaryKeySelective(tdEmailConfiguration);
    }

    @Override
    public EmailConfiguration findById(Object id) {
           return (EmailConfiguration) this.tdEmailConfigurationMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<EmailConfiguration> selectByCondition(EmailConfiguration tdEmailConfiguration) {
           return (List<EmailConfiguration>) this.tdEmailConfigurationMapper.selectByCondition(tdEmailConfiguration);
    }

    @Override
    public Integer selectCountByCondition(EmailConfiguration tdEmailConfiguration) {
           return  this.tdEmailConfigurationMapper.selectCountByCondition(tdEmailConfiguration);
    }

}
